#include<unistd.h>
#include<fcntl.h>
#include<string.h>
#include<sys/stat.h>
#include<stdlib.h>
#include<stdio.h>
#include<errno.h>
#include<pthread.h>
int main(int argc,char** argv)
{
    printf("fork create before!!\n");
    printf("fork create before!!\n");
    printf("fork create before!!\n");


    pid_t pid=fork();

    if(pid==-1)
    {
        perror("fork create fail!\n");
        exit(1);
        }else if(pid==0)
        {
            printf("child fork is create success!\n");
            }else if(pid>0)
            {
                printf("father process is runing, my child pid=%d\n",pid);
                }


printf("-------excute is finish!!!--------\n");
    


return 0;
}
